package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

/**
 * <p>
 * 用户模块
 * </p>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")
public class User implements Serializable {

    // 对象转化为字节流
    private static final long serialVersionUID = 1L;

    @TableId(value = "u_id", type = IdType.AUTO)
    @JsonProperty("uId")
    private Integer uId;

    @JsonProperty("uName")
    private String uName;

    @JsonProperty("uPassword")
    private String uPassword;

    @JsonProperty("uPhoneNumber")
    private String uPhoneNumber;
    @JsonProperty("uBio")
    private String uBio;

    @JsonProperty("uIsAdmin")
    private Boolean uIsAdmin;

    @JsonProperty("uBalance")
    private BigDecimal uBalance;
}
